// import a from './a'
// import b from './b'
import { $post, $get } from '@/api/request'

export const floorData = [
  // a
  // // b
  {
    floorNo: 1,
    floorName: '大楼1F',
    floorImg: './floor/1fa.png'
  },
  {
    floorNo: 2,
    floorName: '大楼2F',
    floorImg: './floor/2fa.png'
  },
  {
    floorNo: 3,
    floorName: '大楼3F',
    floorImg: './floor/3fa.png'
  },
  {
    floorNo: 4,
    floorName: '大楼4F',
    floorImg: './floor/4fa.png'
  },
  {
    floorNo: 5,
    floorName: '大楼顶楼',
    floorImg: './floor/5fa.png'
  }
]
// const precessEnv = process.env
let preUrl = '/repair'
let videoPreUrl = '/video'
// 获取楼栋、楼层、楼层区域、房间
export function getListByTag (data) {
  return $get({
    url: `${preUrl}/scene/floor/getListByTag`,
    data
  })
}

// 添加轮播方案
export function planAdd (data) {
  return $post({
    url: `${videoPreUrl}/carouselProgram/add`,
    data
  })
}

// 删除轮播方案
export function planDel (data) {
  return $post({
    url: `${videoPreUrl}/carouselProgram/delete`,
    data
  })
}

// 查询轮播方案
export function planSearch (data) {
  return $get({
    url: `${videoPreUrl}/carouselProgram/query`,
    data
  })
}
